/**
 * 评分相关API
 */
import { api } from '@/utils/request'
import type { PaginatedResponse, Rating, RatingQueryParams, ApiResponse } from '@/types/api'

/**
 * 获取评分列表
 */
export function getRatings(params?: RatingQueryParams): Promise<PaginatedResponse<Rating>> {
  return api.get('/ratings', { params })
}

/**
 * 删除评分
 */
export function deleteRating(id: number): Promise<ApiResponse<null>> {
  return api.delete(`/ratings/${id}`)
}
